<?php
class AboutsController extends Zend_Controller_Action
{	
    public function init() {
        $SS = new Zend_Session_Namespace ('Default');
        Zend_Session::namespaceUnset('Default');
    }
    public function indexAction()
    {
        $this->view->title = "Giới thiệu";
        $about                 = new Vina_Model_Abouts();
        $data                  = $about->fetchListToArray("type = 'about'", 'id desc', 1);
        
        $this->view->data  = $data[0];
    
    }
    public function detailAction()
    {
        
        $id                     =  $this->_request->getParam('id',false);
        $about                 = new Vina_Model_Abouts();
        $data                  = $about->find($id)->toArray();
        $dataOther             = $about->fetchListToArray("id <> $id", "id desc");
        $this->view->title = $data['title'];
        $this->view->data  = $data;
        $this->view->dataOther = $dataOther;
        $this->render('index');
    }
    	
}
